﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace _70_536
{
    public partial class Form1 : Form
    {
        IO io;

        public Form1()
        {
            InitializeComponent();
        }

        private void zamknijToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnIO1_Click(object sender, EventArgs e)
        {            
            MessageBox.Show(io.ChangeExtension(@"c:\test\test.txt","csv"));
        }

        private void btnDriveInfo_Click(object sender, EventArgs e)
        {
            this.listBox1.DataSource=io.DriveInfoX();
        }

        private void tpIO_Enter(object sender, EventArgs e)
        {
            io = new IO();
        }
    }
}
